package com.itheima.inner.test1;

public class Test {
    public static void main(String[] args) {
        A a = new A();
        System.out.println(a.i);
        a.sing();
        A.B b1= new A().new B();
        A.B b = a.new B();
        System.out.println(b.j);
        b.dance();
    }

}
class A {
   int i=10;
   public void sing(){
       System.out.println("sing");
   }
    class B{
        int j=20;
        public void dance(){
            System.out.println(i);
            System.out.println("dance");
        }

    }
}
